#include "fuction.h"
const double w = 1.1;
double *a = nullptr;
double *b = nullptr;
double *ans = nullptr;
int n = 7585;
void get_data()
{
     std::cin>>n;
     a = new double[n*n];
     b = new double[n];
     ans = new double[n];
     for(int i = 0; i < n; ++i)
     {
	for(int j = 0; j < n; ++j)
        {
	    std::cin>>a[i*n+j];
	    cout<<a[n*i+j];
	}
     }
     for(int i = 0; i < n; ++i)
     std::cin>>b[i];

}
void solve()
{
     ans = SOR(a, n, b, w);
     std::cout<<"the final answer:"<<std::endl;
//     for(int i = 0; i < n; ++i)
    // std::cout<<a[i]<<" ";
}
int main(int argc, char *argv[])
{
    freopen("A.txt", "r", stdin);
    freopen("result", "w", stdout);
    get_data();
    solve();
    fclose(stdin);
    fclose(stdout);
}
